home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / scooby_d.swf / scripts / __Packages / com / ndimedia / ui / laf / BasicRadioButtonHandler.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  952 b   |  26 lines

  1. class com.ndimedia.ui.laf.BasicRadioButtonHandler
  2. {
  3.    function BasicRadioButtonHandler(c, eventType)
  4.    {
  5.       var _loc3_ = 0;
  6.       var _loc2_ = c.graphics;
  7.       _loc2_.clear();
  8.       switch(eventType)
  9.       {
  10.          case com.ndimedia.events.MouseEventType.MOUSE_IN:
  11.             _loc3_ = 11184810;
  12.             break;
  13.          case com.ndimedia.events.MouseEventType.MOUSE_PRESS:
  14.             c.selectInGroup();
  15.       }
  16.       var _loc1_ = c.size;
  17.       var _loc4_ = _loc1_.width >= _loc1_.height ? _loc1_.height / 2 : _loc1_.width / 2;
  18.       new com.ndimedia.display.shapes.Circle(_loc2_,_loc1_.width / 2,_loc1_.height / 2,_loc4_,_loc3_,100);
  19.       new com.ndimedia.display.shapes.Circle(_loc2_,_loc1_.width / 2,_loc1_.height / 2,0.75 * _loc4_,16777215,100);
  20.       if(c.isSelected())
  21.       {
  22.          new com.ndimedia.display.shapes.Circle(_loc2_,_loc1_.width / 2,_loc1_.height / 2,0.5 * _loc4_,_loc3_,100);
  23.       }
  24.    }
  25. }
  26.